-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create text descriptions for e2e tests - Closes #1516 #1523
Conversation
49a6344
to
b1ec74d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general the changes that I mentioned are related the way the comment was wrote, in some cases I am not able to understand what you what to say and in others I better use a better explanation.
In the other hand is great
/** | ||
* 5 transaction are shown in the latest activity | ||
* @expect 5 transactions | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plase try write something more easy to understand like display 5 transaction in the last activity page or component, it is ok but something easy to understand will be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like Andrei's description form, but agree it could say latest activity component/module
* Click on transaction row leads to tx details page | ||
* @expect url | ||
* @expect some specific to page element is present on it | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, like go to details page when a row is being click in this page or component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both descriptions (Andrei's and Osvaldo's) are the same clear.
/** | ||
* Scrolling down triggers loading another portion of txs | ||
* @expect more txs are present | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here like, load more transactions when scroll is placed in the bottom of the page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, same amount of clearness to me.
* Maximum possible number of voted accounts is shown | ||
* @expect 101 are shown | ||
*/ | ||
it('Shows 101 votes', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too, like Display the maximum amount of voted delegates (101)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too :-) Andrei's passive tense is fine.
/** | ||
* Shows voted delegate's nickname not addresses | ||
* @expect delegate's nickname shown | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this too, for be honest I think I know what you meant to say but dont understand for be honest so, I dont know how should be display
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be better English. What about Shows voted delegate's nickname, not address
?
/** | ||
* Shows who-voted-for-this-delegate's nickname if it was delegate | ||
* @expect voters nickname shown | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment is hard to understand can you please change it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand what is meant by who-voted-for-this-delegate
and why the dashes, but I also get that it's not clear to anyone. What about the following?
Shows nickname of account on "Who voted for this delegate?" list if the account is a delegate
/** | ||
* Shows who-voted-for-this-delegate's address if it was not-delegate | ||
* @expect voters address shown | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as this is a comment you can remove the dash, and maybe if possible put something more descriptive
* @expect transaction appears in the activity list in the confirmed state with valid details | ||
* @expect header balance value is decreased | ||
*/ | ||
it('Register delegate + Header balance is affected', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please mention what are the steps of the process instead of process?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. The steps can be described either in the comment above or inside the it
* Search functioning correctly | ||
* @expect no delegates are shown if search for non-existing name | ||
* @expect delegate is shown in 1 row when is found | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for this I dont understand what exactly means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Efefefef please ask @osvaldovega what is he missing here.
/** | ||
* ?showNetwork parameter makes network switcher available | ||
* @expect network switcher is visible | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you missed a typo **?**showNetwork
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's on purpose as url param
* Click on transaction row leads to tx details page | ||
* @expect url | ||
* @expect some specific to page element is present on it | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both descriptions (Andrei's and Osvaldo's) are the same clear.
/** | ||
* 5 transaction are shown in the latest activity | ||
* @expect 5 transactions | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like Andrei's description form, but agree it could say latest activity component/module
/** | ||
* Scrolling down triggers loading another portion of txs | ||
* @expect more txs are present | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, same amount of clearness to me.
* Maximum possible number of voted accounts is shown | ||
* @expect 101 are shown | ||
*/ | ||
it('Shows 101 votes', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too :-) Andrei's passive tense is fine.
@@ -124,44 +137,53 @@ describe('Dashboard Activity', () => { | |||
describe(testSet.name, () => { | |||
beforeEach(() => { | |||
cy.autologin(accounts.delegate.passphrase, networks.devnet.node); | |||
testSet.open(); | |||
waitBeforeChangeTabAfterLoading(); | |||
cy.get(ss.delegateStatisticsTab).click(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The testing talk at React Day was talking about not doing this - each it
should contain the setup, if it's repetitive like this, create a helper function and call it in it
.
/** | ||
* Shows voted delegate's nickname not addresses | ||
* @expect delegate's nickname shown | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be better English. What about Shows voted delegate's nickname, not address
?
/** | ||
* Shows who-voted-for-this-delegate's nickname if it was delegate | ||
* @expect voters nickname shown | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand what is meant by who-voted-for-this-delegate
and why the dashes, but I also get that it's not clear to anyone. What about the following?
Shows nickname of account on "Who voted for this delegate?" list if the account is a delegate
* @expect transaction appears in the activity list in the confirmed state with valid details | ||
* @expect header balance value is decreased | ||
*/ | ||
it('Register delegate + Header balance is affected', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. The steps can be described either in the comment above or inside the it
* Search functioning correctly | ||
* @expect no delegates are shown if search for non-existing name | ||
* @expect delegate is shown in 1 row when is found | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Efefefef please ask @osvaldovega what is he missing here.
/** | ||
* ?showNetwork parameter makes network switcher available | ||
* @expect network switcher is visible | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's on purpose as url param
@osvaldovega I use passive voice to stress on the assertion that is the essence of the test. |
…com:LiskHQ/lisk-hub into 1516-create-text-descriptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Andrei
What issue have I solved?
-- #1516
How have I implemented/fixed it?
extracted selectors to separate file
created textual descriptions for test
How has this been tested?
Review checklist